package com.example.service;

//import com.example.entity.Account;

import com.github.pagehelper.PageInfo;
import com.example.entity.Expenses;
import com.example.entity.ProcessingRecords;

import java.util.List;

/**
 * 审核信息表业务处理
 **/
public interface ProcessingRecordsService {

    /**
     * 新增
     */
    void add(ProcessingRecords processingRecords);

    /**
     * 删除
     */
    void deleteById(Integer id);

    /**
     * 根据报销id进行删除
     * @param id
     */
    void deleteByExpenseId(Integer id);

    /**
     * 批量删除
     */
    void deleteBatch(List<Integer> ids);

    /**
     * 修改
     */
    void updateProcessingRecords(ProcessingRecords processingRecords);

    /**
     * 根据ID查询
     */
    ProcessingRecords selectById(Integer id);

    /**
     * 查询所有
     */
    List<ProcessingRecords> selectAll(ProcessingRecords processingRecords);

    /**
     * 分页查询
     */
    PageInfo<ProcessingRecords> selectPage(ProcessingRecords processingRecords, Integer pageNum, Integer pageSize);

    PageInfo<ProcessingRecords> getExpensesById(Integer pageNum, Integer pageSize,String expensesType);

    ProcessingRecords selectByProcessingRecords(ProcessingRecords records);

}